libxc: Fix out-of-memory error handling in xc_cpupool_getinfo()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 22 Jan 2014 17:47:21 +0000 (17:47 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 12 Feb 2014 16:53:23 +0000 (16:53 +0000)
commitd883c179a74111a6804baf8cb8224235242a88fc
tree907cc55cd7821df028943e6797a6c4a951074ab3
parentb64151d5dd6aeea1f8b37468f91330b128869a9b
libxc: Fix out-of-memory error handling in xc_cpupool_getinfo()

Avoid freeing info then returning it to the caller.

This is XSA-88.

Coverity-ID: 1056192
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
tools/libxc/xc_cpupool.c